﻿<UserControl x:Class="PresentationProject.MouseControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
            
              MouseMove="UserControl_MouseMove" MouseDoubleClick="UserControl_MouseDoubleClick"  >
    <UserControl.Resources>
        <DrawingBrush x:Key="WindowBack" Stretch="Uniform">
            <DrawingBrush.Drawing>
                <DrawingGroup>
                    <DrawingGroup.Children>
                        <GeometryDrawing Geometry="F1 M 6.66672,-73.3333L 673.333,-73.3333L 673.333,526.667L 6.66672,526.667L 6.66672,-73.3333 Z ">
                            <GeometryDrawing.Brush>
                                <RadialGradientBrush RadiusX="0.5" RadiusY="0.666547" Center="0.5,0.5" GradientOrigin="0.5,0.5">
                                    <RadialGradientBrush.GradientStops>
                                        <GradientStop Color="#FF15383A" Offset="0"/>
                                        <GradientStop Color="#FF253030" Offset="1"/>
                                    </RadialGradientBrush.GradientStops>
                                    <RadialGradientBrush.RelativeTransform>
                                        <TransformGroup/>
                                    </RadialGradientBrush.RelativeTransform>
                                </RadialGradientBrush>
                            </GeometryDrawing.Brush>
                        </GeometryDrawing>
                    </DrawingGroup.Children>
                </DrawingGroup>
            </DrawingBrush.Drawing>
        </DrawingBrush>
        <DrawingBrush x:Key="BallBack" Stretch="Uniform">
            <DrawingBrush.Drawing>
                <DrawingGroup>
                    <DrawingGroup.Children>
                        <GeometryDrawing Geometry="F1 M 318.945,81.2486C 367.776,81.2486 407.361,120.834 407.361,169.665C 407.361,218.496 367.776,258.082 318.945,258.082C 270.113,258.082 230.528,218.496 230.528,169.665C 230.528,120.834 270.113,81.2486 318.945,81.2486 Z ">
                            <GeometryDrawing.Brush>
                                <RadialGradientBrush RadiusX="0.455382" RadiusY="0.455382" Center="0.523091,0.526862" GradientOrigin="0.523091,0.526862">
                                    <RadialGradientBrush.GradientStops>
                                        <GradientStop Color="#67000000" Offset="0.767123"/>
                                        <GradientStop Color="#00000000" Offset="1"/>
                                    </RadialGradientBrush.GradientStops>
                                    <RadialGradientBrush.RelativeTransform>
                                        <TransformGroup>
                                            <RotateTransform CenterX="0.523091" CenterY="0.526862" Angle="41.476"/>
                                        </TransformGroup>
                                    </RadialGradientBrush.RelativeTransform>
                                </RadialGradientBrush>
                            </GeometryDrawing.Brush>
                        </GeometryDrawing>
                        <GeometryDrawing Geometry="F1 M 319.444,93.6667C 361.05,93.6667 394.778,127.395 394.778,169C 394.778,210.605 361.05,244.333 319.444,244.333C 277.839,244.333 244.111,210.605 244.111,169C 244.111,127.395 277.839,93.6667 319.444,93.6667 Z ">
                            <GeometryDrawing.Brush>
                                <RadialGradientBrush RadiusX="0.788555" RadiusY="0.788555" Center="0.261811,0.281483" GradientOrigin="0.261811,0.281483">
                                    <RadialGradientBrush.GradientStops>
                                        <GradientStop Color="#FFFCD454" Offset="0"/>
                                        <GradientStop Color="#FFFF7B00" Offset="0.589041"/>
                                        <GradientStop Color="#FFE56400" Offset="0.780822"/>
                                        <GradientStop Color="#FFFE8D11" Offset="1"/>
                                    </RadialGradientBrush.GradientStops>
                                    <RadialGradientBrush.RelativeTransform>
                                        <TransformGroup>
                                            <RotateTransform CenterX="0.261811" CenterY="0.281483" Angle="44.0906"/>
                                        </TransformGroup>
                                    </RadialGradientBrush.RelativeTransform>
                                </RadialGradientBrush>
                            </GeometryDrawing.Brush>
                        </GeometryDrawing>
                        <GeometryDrawing Geometry="F1 M 317.611,97.244C 350.027,97.244 377.377,118.931 385.944,148.587C 370.844,139.791 352.136,134.587 331.877,134.587C 293.469,134.587 260.635,153.292 247.394,179.714C 246.801,176.017 246.493,172.226 246.493,168.363C 246.493,129.085 278.334,97.244 317.611,97.244 Z ">
                            <GeometryDrawing.Brush>
                                <RadialGradientBrush RadiusX="0.560455" RadiusY="0.816417" Center="0.211739,0.441381" GradientOrigin="0.211739,0.441381">
                                    <RadialGradientBrush.GradientStops>
                                        <GradientStop Color="#5CFFFFFF" Offset="0"/>
                                        <GradientStop Color="#2EFFFFFF" Offset="0.726027"/>
                                        <GradientStop Color="#00FFFFFF" Offset="1"/>
                                    </RadialGradientBrush.GradientStops>
                                    <RadialGradientBrush.RelativeTransform>
                                        <TransformGroup>
                                            <SkewTransform CenterX="0.211739" CenterY="0.441381" AngleX="-17.1746" AngleY="0"/>
                                            <RotateTransform CenterX="0.211739" CenterY="0.441381" Angle="-27.4876"/>
                                        </TransformGroup>
                                    </RadialGradientBrush.RelativeTransform>
                                </RadialGradientBrush>
                            </GeometryDrawing.Brush>
                        </GeometryDrawing>
                        <GeometryDrawing Geometry="F1 M 329.843,243.706C 289.056,243.706 255.992,210.642 255.992,169.855C 255.992,129.299 288.682,96.3789 329.15,96.0065C 301.229,107.166 281.372,135.728 281.372,169.201C 281.372,204.021 302.859,233.526 332.557,243.657C 331.657,243.69 330.752,243.706 329.843,243.706 Z ">
                            <GeometryDrawing.Brush>
                                <RadialGradientBrush RadiusX="0.554946" RadiusY="0.719689" Center="0.19894,0.482686" GradientOrigin="0.19894,0.482686">
                                    <RadialGradientBrush.GradientStops>
                                        <GradientStop Color="#34FFFFFF" Offset="0"/>
                                        <GradientStop Color="#00FFFFFF" Offset="1"/>
                                    </RadialGradientBrush.GradientStops>
                                    <RadialGradientBrush.RelativeTransform>
                                        <TransformGroup>
                                            <SkewTransform CenterX="0.19894" CenterY="0.482686" AngleX="-28.4113" AngleY="0"/>
                                            <RotateTransform CenterX="0.19894" CenterY="0.482686" Angle="47.9758"/>
                                        </TransformGroup>
                                    </RadialGradientBrush.RelativeTransform>
                                </RadialGradientBrush>
                            </GeometryDrawing.Brush>
                        </GeometryDrawing>
                        <GeometryDrawing Brush="#25FFFFFF" Geometry="F1 M 394.235,168.821C 394.235,205.583 367.903,236.194 333.072,242.824C 363.513,232.766 385.568,203.139 385.568,168.155C 385.568,136.669 367.704,109.523 341.94,97.0759C 372.277,106.81 394.235,135.251 394.235,168.821 Z "/>
                        <GeometryDrawing Geometry="F1 M 301.903,200.166C 291.625,198.857 286.09,175.836 289.54,148.746C 292.97,121.81 303.992,100.995 314.221,102.046C 306.242,108.562 298.822,126.895 295.99,149.127C 293.045,172.253 295.964,192.539 302.591,200.221C 302.362,200.214 302.132,200.195 301.903,200.166 Z ">
                            <GeometryDrawing.Brush>
                                <RadialGradientBrush RadiusX="0.428313" RadiusY="0.710359" Center="0.197618,0.463581" GradientOrigin="0.197618,0.463581">
                                    <RadialGradientBrush.GradientStops>
                                        <GradientStop Color="#34FFFFFF" Offset="0"/>
                                        <GradientStop Color="#00FFFFFF" Offset="1"/>
                                    </RadialGradientBrush.GradientStops>
                                    <RadialGradientBrush.RelativeTransform>
                                        <TransformGroup>
                                            <SkewTransform CenterX="0.197618" CenterY="0.463581" AngleX="3.46587" AngleY="0"/>
                                            <RotateTransform CenterX="0.197618" CenterY="0.463581" Angle="79.4414"/>
                                        </TransformGroup>
                                    </RadialGradientBrush.RelativeTransform>
                                </RadialGradientBrush>
                            </GeometryDrawing.Brush>
                        </GeometryDrawing>
                        <GeometryDrawing Brush="#27FFFFFF" Geometry="F1 M 351.842,123.738C 349.253,128.527 359.163,144.558 364.33,143.706C 369.498,142.855 367.071,136.637 364.012,131.684C 360.953,126.731 354.431,118.949 351.842,123.738 Z "/>
                    </DrawingGroup.Children>
                </DrawingGroup>
            </DrawingBrush.Drawing>
        </DrawingBrush>
    </UserControl.Resources>
    <Grid>
        
            <InkCanvas Name="myInkCanvas" >
                <Image Source="/Resources/Images/中国.png" Name="image" Width="1460" Height="800"  InkCanvas.Left="0" InkCanvas.Top="0" Stretch="Fill"></Image>
                <!--<Ellipse x:Name="Ball" Opacity="0.9" Height="65" Width="65" InkCanvas.Top="{Binding Y}" InkCanvas.Left="{Binding X}" Fill="{StaticResource BallBack}" />-->
                <Image Source="/Resources/Images/image_thumb2.png" Name="secondImage"   Width="450" Height="500" InkCanvas.Left="{Binding SecondX}" InkCanvas.Top="300" Opacity="1"></Image>
                <Image Opacity="0.9" Source="/Resources/Images/Mouse.jpg" Height="30" Width="30" InkCanvas.Top="{Binding Y}" InkCanvas.Left="{Binding X}" ></Image>

           
        </InkCanvas>
    </Grid>
</UserControl>
